package com.itheima.domain;


import java.util.Date;

public class Trip {
    private int id;
    private String username;
    private int gender;
    private String idcard;
    private String fromAddress;
    private String toAddress;
    private String startTime;

    public Trip(int id, String username, int gender, String idcard, String fromAddress, String toAddress, String startTime) {
        this.id = id;
        this.username = username;
        this.gender = gender;
        this.idcard = idcard;
        this.fromAddress = fromAddress;
        this.toAddress = toAddress;
        this.startTime = startTime;
    }

    public String getToAddress() {
        return toAddress;
    }

    public void setToAddress(String toAddress) {
        this.toAddress = toAddress;
    }

    public Trip() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public String getFromAddress() {
        return fromAddress;
    }

    public void setFromAddress(String fromAddress) {
        this.fromAddress = fromAddress;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    @Override
    public String toString() {
        return "Trip{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", gender=" + gender +
                ", idcard='" + idcard + '\'' +
                ", fromAddress='" + fromAddress + '\'' +
                ", toAddress='" + toAddress + '\'' +
                ", startTime='" + startTime + '\'' +
                '}';
    }
}
